; Fortior_FU6832_FOC_v1_0_1_8_240330_fticpmf_
	.module Fortior_FU6832_FOC_v1_0_1_8_240330_fticpmf_.asm
	.optftcc -mmcs51 --model-large

	.globl _mcFaultDect
	.globl _memset
	.globl _Write_IIC_Byte
	.globl _MDU_C
	.globl _MDU_B
	.globl _mcFocCtrl
	.globl _MotorSpeed
	.globl _mcCurOffset
	.globl _MDU_A
	.globl _mcCurVarible

	.area RSEG    (ABS,DATA)
	.org 0x0000
_MDU_C	=	0xc3c2
_MDU_B	=	0xc5c4
_MDU_A	=	0xc7c6

	.area CSEG    (CODE)
	ar7 = 0x07
	ar6 = 0x06
	ar5 = 0x05
	ar4 = 0x04
	ar3 = 0x03
	ar2 = 0x02
	ar1 = 0x01
	ar0 = 0x00

__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100003::
	add	a,acc
	mov	r7,a
	mov	a,r6
	rlc	a
	mov	r6,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100004::
	push	acc
	mov	a,#0x2c
	push	acc
	clr	a
	push	acc
	mov	dptr,#_mcFaultDect
	mov	b,#0x40
	lcall	_memset
	dec	sp
	dec	sp
	dec	sp
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100005::
	push	ar6
	push	acc
	mov	b,#0x03
	clr	a
	lcall	__mulint
	mov	r6,a
	mov	r7,b
	dec	sp
	dec	sp
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100006::
	push	ar7
	mov	a,#0x78
	lcall	_Write_IIC_Byte
	pop	ar7
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100007::
	xrl	a,#0x80
	mov	b,r6
	xrl	b,#0x80
	subb	a,b
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100008::
	mov	a,r5
	clr	c
	subb	a,r7
	mov	r5,a
	mov	a,r4
	subb	a,r6
	mov	r4,a
	mov	a,r3
	subb	a,r1
	mov	r3,a
	mov	a,r2
	subb	a,r0
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100009::
	dec	r7
	cjne	r7,#0xff,100010$
	dec	r6
100010$:
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100011::
	add	a,r7
	mov	r5,a
	mov	a,r6
	addc	a,r4
	mov	r4,a
	clr	a
	addc	a,r3
	mov	r3,a
	clr	a
	addc	a,r2
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100012::
	inc	r7
	cjne	r7,#0x00,100013$
	inc	r6
100013$:
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100020::
	clr	c
	mov	a,r7
	subb	a,r5
	mov	a,r6
	subb	a,r4
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100021::
	clr	c
	mov	a,#0x88
	subb	a,r7
	mov	a,#0x08
	subb	a,r6
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100022::
	clr	c
	mov	a,#0x14
	subb	a,@r0
	clr	a
	subb	a,r6
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100023::
	subb	a,r7
	mov	a,#(0x03 ^ 0x80)
	mov	b,r6
	xrl	b,#0x80
	subb	a,b
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100024::
	movx	@dptr,a
	mov	a,b
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100025::
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100026::
	mov	a,#0x04
	movx	@dptr,a
	mov	a,#0xcc
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100027::
	mov	a,((_MDU_C >> 8) & 0xFF)
	movx	@dptr,a
	mov	a,((_MDU_C >> 0) & 0xFF)
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100028::
	mov	a,((_MDU_B >> 8) & 0xFF)
	movx	@dptr,a
	mov	a,((_MDU_B >> 0) & 0xFF)
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100029::
	clr	a
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3f
	inc	dptr
	movx	@dptr,a
	mov	a,#0xff
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100030::
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100031::
	mov	dptr,#0x4076
	clr	a
	movx	@dptr,a
	mov	a,#0xce
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100032::
	mov	dptr,#0x4074
	mov	a,#0x1b
	movx	@dptr,a
	mov	a,#0x75
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100033::
	mov	dptr,#0x4076
	clr	a
	movx	@dptr,a
	mov	a,#0x5b
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100034::
	mov	dptr,#0x4074
	mov	a,#0x12
	movx	@dptr,a
	mov	a,#0x4e
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100035::
	mov	dptr,#0x4076
	clr	a
	movx	@dptr,a
	mov	a,#0x16
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100036::
	mov	dptr,#0x4074
	mov	a,#0x09
	movx	@dptr,a
	mov	a,#0x27
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100037::
	mov	dptr,#0x4092
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100038::
	mov	dptr,#0x40cc
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100039::
	mov	dptr,#0x4076
	clr	a
	movx	@dptr,a
	mov	a,#0x08
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100040::
	mov	dptr,#0x4074
	mov	a,#0x05
	movx	@dptr,a
	mov	a,#0x7d
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100041::
	mov	dptr,#0x405c
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100042::
	mov	dptr,#0x40a6
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100043::
	mov	dptr,#0x4042
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100044::
	mov	dptr,#(_mcFocCtrl + 0x000a)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100045::
	mov	dptr,#(_MotorSpeed + 0x0003)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100046::
	mov	dptr,#(_mcCurOffset + 0x000e)
	movx	@dptr,a
	mov	a,r3
	inc	dptr
	movx	@dptr,a
	mov	a,r4
	inc	dptr
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100047::
	mov	dptr,#(_mcCurOffset + 0x0008)
	movx	@dptr,a
	mov	a,r3
	inc	dptr
	movx	@dptr,a
	mov	a,r4
	inc	dptr
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100048::
	mov	dptr,#(_mcCurOffset + 0x0002)
	movx	@dptr,a
	mov	a,r3
	inc	dptr
	movx	@dptr,a
	mov	a,r4
	inc	dptr
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100049::
	mov	dptr,#(_mcFocCtrl + 0x001a)
	clr	a
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100050::
	mov	dptr,#(_mcFocCtrl + 0x001a)
	clr	a
	movx	@dptr,a
	mov	a,#0x14
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100051::
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100052::
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100053::
	movx	a,@dptr
	mov	((_MDU_B >> 8) & 0xFF),a
	inc	dptr
	movx	a,@dptr
	mov	((_MDU_B >> 0) & 0xFF),a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100054::
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100055::
	movx	a,@dptr
	mov	((_MDU_C >> 8) & 0xFF),a
	inc	dptr
	movx	a,@dptr
	mov	((_MDU_C >> 0) & 0xFF),a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100056::
	movx	a,@dptr
	mov	((_MDU_A >> 8) & 0xFF),a
	inc	dptr
	movx	a,@dptr
	mov	((_MDU_A >> 0) & 0xFF),a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100057::
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100058::
	mov	dptr,#(_mcCurOffset + 0x000e)
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100059::
	mov	dptr,#(_mcCurOffset + 0x0008)
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100060::
	mov	dptr,#(_mcCurOffset + 0x0002)
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100061::
	mov	dptr,#(_mcFocCtrl + 0x001a)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100062::
	mov	dptr,#(_mcFocCtrl + 0x000a)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100063::
	mov	dptr,#0x405c
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100064::
	mov	dptr,#(_mcCurVarible + 0x0003)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100065::
	mov	dptr,#(_mcCurVarible + 0x0007)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100066::
	mov	dptr,#(_mcCurVarible + 0x0005)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100067::
	mov	dptr,#(_mcFocCtrl + 0x0012)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100068::
	mov	dptr,#(_mcFocCtrl + 0x0016)
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100069::
	mov	dptr,#_mcFocCtrl
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret
__Fortior_FU6832_FOC_v1_0_1_8_240330_mf_100070::
	mov	dptr,#0x4042
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	ret


